package com.gitee.wsl.mathematics.function.scale

/**
 * A stricly continuous dimension is only defined by its start and end.
 * There is not intermediary value.
 */
data class StrictlyContinuous<D>(val start: D, val end: D)

fun <D> intervalOf(start: D, end: D): StrictlyContinuous<D> = StrictlyContinuous(start, end)

fun <D> intervalOf(vararg values: D): StrictlyContinuous<D> =
    StrictlyContinuous(values.first(), values.last())